package work20241207_chap8.i;

/**
 * @author zdl
 * @date 2024/12/7
 */
public class Controller {
    private MediaPlayer[] players;
    public Controller(){
        players = new MediaPlayer[3];
    }
    public void play(int i){
        players[i].play();
    }
    public void stop(int i){
        players[i].stop();
    }
    public void open(int i){
        players[i].open();
    }
}
